calculation of simple interest in C